package com.wiscamp.ninechapters.problems.infrastructure.mappers.spider;

import com.wiscamp.ninechapters.problems.infrastructure.po.spider.MayiProblem;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

@Repository
@Deprecated
public interface MayiProblemMapper extends JpaRepository<MayiProblem, Long>, JpaSpecificationExecutor<MayiProblem> {

    // @Query(value = "select e from MayiProblem e where e.processed = 0 order by
    // e.moduleId, e.pageId, e.problemIndex imit 1")
    MayiProblem findFirstByProcessedFalseOrderByModuleIdAsc();
}